package org.dromara.common.translation.core.impl;

import lombok.AllArgsConstructor;
import org.apache.dubbo.config.annotation.DubboReference;
import org.dromara.common.area.core.utils.AreaUtils;
import org.dromara.common.translation.annotation.TranslationType;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.common.translation.core.TranslationInterface;
import org.dromara.tearoom.api.RemoteAppUserService;

/**
 * 地区Ids翻译实现
 *
 * @author ckj
 */
@AllArgsConstructor
@TranslationType(type = TransConstant.AREA_IDS_TO_NAME)
public class AreaIdsNameTranslationImpl implements TranslationInterface<String> {


    @Override
    public String translation(Object key, String other) {
        return AreaUtils.formatAreaIdString(key.toString(),"/");
    }
}
